import { instance } from "@/utils/request";

export function getNews(current) {
  return instance({
    url:"admin/resource/pageList",
    params:{
      current,
      size:10,
      resourceClass:"xwzx"
    }
  })
}
export function getKp(current) {
  return instance({
    url:"admin/resource/pageList",
    params:{
      current,
      size:10,
      resourceClass:"zykp"
    }
  })
}
export function addNK(data) {
  return instance({
    url:"admin/resource/add",
    method:"POST",
    data
  })
}
export function editNK(data) {
  return instance({
    url:"admin/resource/update",
    method:"POST",
    data
  })
}
export function delNK(id,fileId) {
  return instance({
    url:"admin/resource/remove",
    params:{id,fileId}
  })
}



export function getHd(current) {
  return instance({
    url:"admin/activity/list",
    params:{
      current,
      size:10
    }
  })
}
export function addHd(data) {
  return instance({
    url:"admin/activity/add",
    method:"POST",
    data
  })
}
export function delHd(data) {
  return instance({
    url:"admin/activity/remove",
    method:"POST",
    data
  })
}

